package org.example.controller;

import lombok.extern.slf4j.Slf4j;
import org.example.pojo.Result;
import org.example.service.LogService;
import org.example.service.imp.LogServiceImp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RestController
public class LogPageController {
    @Autowired
    LogServiceImp logServiceImp;
    /**
     * 获取日志分页信息
     */

    @GetMapping("/log/page")
    public Result getLogPage(int page,int pageSize ){
        log.info("获取日志分页信息:{},{}",page,pageSize);
        return Result.success(logServiceImp.findLog(page,pageSize));
    }

}
